package com.mdd.common.enums;

public enum CouponEnum {

    STATUS_NOT_STARTED(1, "未开始"),
    STATUS_GOING(2, "进行中"),

    STATUS_CLOSED(3, "已结束"),

//    1：已使用；0：已领取未使用；-1：为已过期；2：作废

    RECEIVE_STATUS_USED(1, "已使用"),

    RECEIVE_STATUS_NOUSE(0, "未使用"),

    RECEIVE_STATUS_EXPIRED(-1, "已过期"),

    RECEIVE_STATUS_CANCEL(2, "作废"),

    RECEIVE_METHOD_SYSTEM(2, "系统发放"),

    RECEIVE_METHOD_USER(1, "用户领取");


    private final int code;
    private final String msg;

    CouponEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**
     * 获取状态码
     *
     * @author panweiliang
     * @return Long
     */
    public int getCode() {
        return this.code;
    }

    /**
     * 获取提示
     *
     * @author panweiliang
     * @return String
     */
    public String getMsg() {
        return this.msg;
    }

}
